<script type="text/javascript" src="${webRoot!}/skins/My97DatePicker/WdatePicker.js"></script>
<div class="modal fade" id="update-order-dialog-new"  role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true" >
    <div class="modal-dialog">
        <div class="modal-content" >
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    编辑订单
                </h4>
            </div>
            <div class="modal-body" style="overflow: auto;">
                <form id="orderFrom" class="bs-example bs-example-form form-horizontal" role="form">
                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label"><font class="tip-red">*</font>订单编号</label>
                        <div class="col-sm-4">
                            <input type="hidden" id="oId" value="${item.busOrder.oId!}"/>
                            <input type="text" class="form-control" id="oNo" name="oNo" placeholder="订单编号"
                                   readonly="readonly"
                                   maxlength="20" value="${item.busOrder.oNo!}">
                            <span id="aAccountSpan" class="tip-red"></span>
                        </div>
                        <label for="firstname" class="col-sm-2 control-label">PNR</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oPnr" name="oPnr" placeholder="PNR"
                                   maxlength="20" value="${item.busOrder.oPnr!}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">乘机人</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oName" name="oName"
                                   placeholder="乘机人" maxlength="20" value="${item.busOrder.oName!}">
                        </div>
                        <label for="firstname" class="col-sm-2 control-label">行程</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oRoute" name="oRoute" placeholder="行程"
                                   maxlength="20" value="${item.busOrder.oRoute!}" >
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">票号</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oTicketNo" name="oTicketNo" placeholder="票号"
                                   maxlength="20" value="${item.busOrder.oTicketNo!}">
                        </div>
                        <label for="firstname" class="col-sm-2 control-label">客户</label>
                        <div class="col-sm-4">
                            <!--<input type="text" class="form-control" id="oCustomerId" name="oCustomerId" placeholder="客户"-->
                                   <!--maxlength="20" value="${item.busOrder.oCustomerId!}">-->
                            <select id="oCustomerId"></select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">票证来源</label>
                        <div class="col-sm-4">
                            <select id="oTicketSource" name="oTicketSource" class="form-control" >
                                <option  value="BSP" <#if ("${item.busOrder.oTicketSource!}" == "BSP")>selected="selected"</#if>>BSP </option>
                                <option  value="外购" <#if ("${item.busOrder.oTicketSource!}" == "外购")>selected="selected"</#if>>外购 </option>
                                <option  value="航司官网" <#if ("${item.busOrder.oTicketSource!}" == "航司官网}")>selected="selected"</#if>>航司官网 </option>
                            </select>
                        </div>
                        <label for="firstname" class="col-sm-2 control-label">供应商</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oSupplier" name="oSupplier" placeholder="供应商"
                                   maxlength="20" value="${item.busOrder.oSupplier!}" >
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">票面价</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oTicketPrice" name="oTicketPrice"
                                   placeholder="票面价" maxlength="20" value="${item.busOrder.oTicketPrice!}" onkeyup="Order.getJeSuanNum()" >
                        </div>
                        <label for="firstname" class="col-sm-2 control-label">后返</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oTicketRebate" name="oTicketRebate" placeholder="后返"
                                   maxlength="20" value="${item.busOrder.oTicketRebate!}" onkeyup="Order.getJeSuanNum()">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">税金</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oTicketTax" name="oTicketTax" placeholder="税金"
                                   maxlength="20" value="${item.busOrder.oTicketTax!}" onkeyup="Order.getJeSuanNum()">
                        </div>
                        <label for="firstname" class="col-sm-2 control-label">结算价</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oTicketSettlementPrice" name="oTicketSettlementPrice"
                                   placeholder="结算价" maxlength="20" value="${item.busOrder.oTicketSettlementPrice!}" onkeyup="Order.getLiRunNum()">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">实收价</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oTicketSellPrice" name="oTicketSellPrice"
                                   placeholder="实收价" maxlength="20" value="${item.busOrder.oTicketSellPrice!}" onkeyup="Order.getLiRunNum()">
                        </div>
                        <label for="firstname" class="col-sm-2 control-label">利润</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oTicketProfit" name="oTicketProfit"
                                   placeholder="利润" maxlength="20" value="${item.busOrder.oTicketProfit!}">
                        </div>
                    </div>

                    <div class="form-group">
                    	<label for="firstname" class="col-sm-2 control-label">出票日期</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" id="oIssueDate" placeholder="出票日期" value='${item.busOrder.oIssueDate?string("yyyy-MM-dd")}' onFocus="WdatePicker()" />
                        </div>
                        <label for="firstname" class="col-sm-2 control-label">订单状态</label>
                        <div class="col-sm-4">
                            <select id="oStatus" name="oStatus"  class="form-control">
                                <option value="0" <#if ("${item.busOrder.oStatus!}" == '0')>selected="selected"</#if> >创建</option>
                                <option value="1" <#if ("${item.busOrder.oStatus!}" == '1')>selected="selected"</#if> >出票</option>
                                <option value="2" <#if ("${item.busOrder.oStatus!}" == '2')>selected="selected"</#if> >退票</option>
                                <option value="3" <#if ("${item.busOrder.oStatus!}" == '3')>selected="selected"</#if> >改期</option>
                                <option value="4" <#if ("${item.busOrder.oStatus!}" == '4')>selected="selected"</#if> >废票</option>
                            </select>
                        </div>
                    </div>
                    
                    <div class="form-group">
                    	<label for="firstname" class="col-sm-2 control-label">备注</label>
                        <div class="col-sm-10">
                            <textarea rows="3" class="form-control" id="oRemark" placeholder="备注" maxlength="1000">${item.busOrder.oRemark!}</textarea>       
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="save-button" onclick="Order.updateOrder()">
                    保存
                </button>
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
            </div>
        </div><!-- /.modal-content -->

    </div><!-- /.modal -->
  <!--  <input type="hidden" id="lsoSupplier" value="${item.busOrder.oSupplier!}">-->
</div>

<!--<script language="javascript">-->
    <!--function oCopy(value){-->
        <!--var input = document.getElementById(value);-->
        <!--input.select(); // 选中文本-->
        <!--document.execCommand("copy"); // 执行浏览器复制命令-->
        <!--alert("复制成功");-->
    <!--}-->
<!--</script>-->






<!-- End Panel Columns & Select -->
